
*** Replication Do-File for Figure 1 in BJPS Paper 'A New Dilemma of Social Democracy?' (19/09/23)

*** Pre-Clean Version

***********************************************************************************

version 14
clear all
set more off, perm
set scrollbufsize 300000
set maxvar 32767

use "C:\Users\Zack.Grant\Dropbox (Nuffield College)\PROJECTS\IDENTITYPOL-GB\New Dilemma of Social Democracy Paper\BJPS Replication Files\NewSocDemDilemma_A_postclean.dta" //* Merged, cleaned and reduced version of 1987/2019 BES


*** See 'NewSocDemDilemma_A_preclean' for information on coding and variable construction.


**** FIGURE 1 STATISTICS* ('Different Class-Ethnicity Groups as a Percentage of the Electorate and Labour Vote')
	
	
*** Size of Class Groups in British Electorate (1987)
 
 svyset [pweight= bes87_wtVOTE], psu(bes_ID)
 svy: tab ClassGroup_1987  if bes87_occupclass  != 7 //* (Exclude 0.6% of sample whose class was NA, results similar if include)
	
*** Size of Class Groups in Labour Electorate (1987)
	
 svy: tab bes87vote ClassGroup_1987 if bes87_occupclass  != 7, row 
  
  
  
  
*** Size of Class Groups in British Electorate (2019)
	
 svyset [pweight= bes19_wtVOTE], psu(bes_ID)
 svy: tab ClassGroup_2019	if bes19_occupclass  != 7  //* (Exclude 5.9% of sample whose class was NA, results similar if include)
	
*** Size of Class Groups in British Electorate (2019)
	
 svyset [pweight= bes19_wtVOTE], psu(bes_ID)
 svy: tab bes19vote ClassGroup_2019  if bes19_occupclass != 7, row 
  
	

* Note: Figure itself made in Excel
	
	
